//#include<stdio.h>
//#include<string.h>
//
//int main()
//{
//	char arr1[20] = "xxxxxxxxx";
//	char arr2[] = "hello";
//	strncpy_s(arr1, arr2,3);
//	return 0;
//}
#include <string.h>
#include <stdio.h>

void main(void)
{
	char string[100] = "Cats are nice usually";
	printf("Before: %s\n", string);
	strncpy_s(string, "Dogs", 4);
	strncpy_s(string + 9, "mean", 4);
	printf("After:  %s\n", string);
}
